﻿using Microsoft.EntityFrameworkCore;

namespace TZBlog
{
    public class TZBlogDBContext:DbContext
    {
        public TZBlogDBContext(DbContextOptions<TZBlogDBContext> options) :base(options) 
        { }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }
        public DbSet<UserEntity> Users { get; set; }
        public DbSet<ArticleEntity> Articles { get; set; }
    }
}
